<template>
  <view class="work-container">
    <view class="grid-body">
      <uni-grid :column="4" :showBorder="false">
        <uni-grid-item>
          <view class="grid-item-box" @click="toResult">
            <uni-icons type="person-filled" size="30"></uni-icons>
            <text class="text">诊断结果</text>
          </view>
        </uni-grid-item>
        <uni-grid-item>
          <view class="grid-item-box" @click="toMap">
            <uni-icons type="staff-filled" size="30"></uni-icons>
            <text class="text">电站地图</text>
          </view>
        </uni-grid-item>
        <uni-grid-item>
          <view class="grid-item-box" @click="toInspectionReg">
            <uni-icons type="color" size="30"></uni-icons>
            <text class="text">巡检登记</text>
          </view>
        </uni-grid-item>
        <uni-grid-item>
          <view class="grid-item-box" @click="toInspectionRec">
            <uni-icons type="settings-filled" size="30"></uni-icons>
            <text class="text">巡检记录</text>
          </view>
        </uni-grid-item>
        <uni-grid-item>
          <view class="grid-item-box" @click="toConstructionReg">
            <uni-icons type="heart-filled" size="30"></uni-icons>
            <text class="text">建设登记</text>
          </view>
        </uni-grid-item>
        <uni-grid-item>
          <view class="grid-item-box" @click="toConstructionRev">
            <uni-icons type="bars" size="30"></uni-icons>
            <text class="text">建设查看</text>
          </view>
        </uni-grid-item>
      </uni-grid>
    </view>
  </view>
</template>

<script setup>
	import { ref } from "vue";
  import { tab } from '@/plugins';
  function toResult() {
	  	tab.navigateTo('/pages_operation_management/pages/medicalResult/index') 
  }

  function toMap() {
    tab.navigateTo( '/pages_operation_management/pages/stationMap/index'
	  );
  }

  function toInspectionReg() {
    tab.navigateTo( '/pages_operation_management/pages/inspectionRegistration/index'
	  );
  }

  function toInspectionRec() {
    tab.navigateTo('/pages_operation_management/pages/inspectionRecord/index'
	  );
  }

  function toConstructionReg() {
    tab.navigateTo( '/pages_operation_management/pages/constructionRegistration/index'
	  );
  }

  function toConstructionRev() {
    tab.navigateTo('/pages_operation_management/pages/constructionReview/index'
	  );
  }
	
</script>

<style lang="scss">
  /* #ifndef APP-NVUE */
  page {
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    background-color: #fff;
    min-height: 100%;
    height: auto;
  }

  view {
    font-size: 14px;
    line-height: inherit;
  }

  /* #endif */

.grid-body {
    background-color: #F2F2F2;
  }

  .text {
    text-align: center;
    font-size: 26rpx;
    margin-top: 10rpx;
  }

  .grid-item-box {
    flex: 1;
    box-shadow: #fff 0 0 1px;
    /* #ifndef APP-NVUE */
    display: flex;
    /* #endif */
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 15px 0;
  }


</style>
